Telegram Group & Telegram Channel
#вопрос261

Напишите функцию, которая будет принимать отсортированный список чисел и возвращать медиану. Если число дробное, его нужно округлить до десятых.

Примеры:

median([1, 2, 4, 5, 6, 8, 8, 8, 10]) ➞ 6
median([2, 2, 6, 8, 8, 10, 10]) ➞ 8
median([1, 2, 2, 4, 7, 8, 9, 10]) ➞ 5.5



tg-me.com/pythonjuniorjob/898
Create:
Last Update:

#вопрос261

Напишите функцию, которая будет принимать отсортированный список чисел и возвращать медиану. Если число дробное, его нужно округлить до десятых.

Примеры:

median([1, 2, 4, 5, 6, 8, 8, 8, 10]) ➞ 6
median([2, 2, 6, 8, 8, 10, 10]) ➞ 8
median([1, 2, 2, 4, 7, 8, 9, 10]) ➞ 5.5

BY Python вопросы на собеседовании с ответами


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonjuniorjob/898

View MORE
Open in Telegram


Python вопросы на собеседовании с ответами Telegram | DID YOU KNOW?

Date: |

Telegram Gives Up On Crypto Blockchain Project

Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

Python вопросы на собеседовании с ответами from sa


Telegram Python вопросы на собеседовании с ответами
FROM USA